﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HTComics.Web.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <link href="../Css/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
    <script src="../Scripts/validField.js" type="text/javascript"></script>


<script type="text/javascript">
    $(document).ready(
    function () {
        $("#btnSearch").button().click(
            function () {
                if ($("#txtSearch").val() == "") {
                    alert("Please enter a search term");
                    $("#txtSearch").focus();
                    return false;
                }
                else if (validAlphaNumeric_NoSPChars(document.all.txtSearch) == 0) {
                    alert("Please enter only alphabets or numbers for search");
                    $("#txtSearch").focus();
                    return false;
                }

                window.location = "../Search/ViewComics.aspx?q=" + $("#txtSearch").val() + "&t=1";
                return false;
            }
        );
        $("#accordion").accordion();
    });
</script>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Heading" runat="server">
          Home page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<table width="100%" cellpadding="10" cellspacing="10">  
    <tr>
        <td>
            Welcome to <b>Hidden Treasure Comics</b>, Ireland's largest comic book back catalogue. We offer a vast
            amount of comics from <b><%=string.Format("{0:0,000}",totalComics)%></b> titles and <b><%=string.Format("{0:0,000}",totalIssues)%></b> issues. Just search our back
            catalogue by entering a name into our title search or click on any letter of the alphabet to see a list of
            comic titles. We offer a standard discount rate of <b><%=discount%> %</b> on ALL our comic stock to help
            guarantee the lowest prices anywhere. If you see a comic listed for sale at a lower price than at the
            HT back catalogue we will beat the competitor’s price by 10%. You can order your comics in-store
            at any of our pick-up locations and pay cash or online and pay via paypal. At the Hidden Treasure
            Comic Back Catalogue we are constantly trying to improve our service. As our website grows and
            offers more comics at unbeatable prices we will do all we can to guarantee customer satisfaction.

            <p align="center"><b><i>'We read to know we are not alone'. - C.S. Lewis</i></b></p>
        </td>
    </tr>  
    <tr>
        <td>
            <div class="section">
                <span class="header">
                    Search by Title
                </span>

            <div class="content">
                Please enter a comic title into the text box and hit search ... <br /><br />

                <input type="text" id="txtSearch" />

                <button id="btnSearch" style="font-size:0.8em;">Search</button>
            </div>
            </div>
        </td>
    </tr>
    <tr>
        <td class="section" style="text-align:center;"> ----- OR ----- </td>
    </tr>
    <tr>
        <td>
            <div class="section">
                <span class="header">
                    Browse Titles by Alphabet
                </span>

            <div class="content">
               Click on any letter of the alphabet below and we will list all titles starting with that letter.
                <br /><br />

                <div class="alphabets">
                    <a href="Search/ViewComics.aspx?q=NUM&t=0" class="lnkAlphabet">#</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=A&t=0" class="lnkAlphabet">A</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=B&t=0" class="lnkAlphabet">B</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=C&t=0" class="lnkAlphabet">C</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=D&t=0" class="lnkAlphabet">D</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=E&t=0" class="lnkAlphabet">E</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=F&t=0" class="lnkAlphabet">F</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=G&t=0" class="lnkAlphabet">G</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=H&t=0" class="lnkAlphabet">H</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=I&t=0" class="lnkAlphabet">I</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=J&t=0" class="lnkAlphabet">J</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=K&t=0" class="lnkAlphabet">K</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=L&t=0" class="lnkAlphabet">L</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=M&t=0" class="lnkAlphabet">M</a>&nbsp;
                    <br />
                    <a href="Search/ViewComics.aspx?q=N&t=0" class="lnkAlphabet">N</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=O&t=0" class="lnkAlphabet">O</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=P&t=0" class="lnkAlphabet">P</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=Q&t=0" class="lnkAlphabet">Q</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=R&t=0" class="lnkAlphabet">R</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=S&t=0" class="lnkAlphabet">S</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=T&t=0" class="lnkAlphabet">T</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=U&t=0" class="lnkAlphabet">U</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=V&t=0" class="lnkAlphabet">V</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=W&t=0" class="lnkAlphabet">W</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=X&t=0" class="lnkAlphabet">X</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=Y&t=0" class="lnkAlphabet">Y</a>&nbsp;
                    <a href="Search/ViewComics.aspx?q=Z&t=0" class="lnkAlphabet">Z</a>&nbsp;
                </div>
            </div>
            </div>
        </td>
    </tr>    
</table>

<div id="accordion" style="display:none;">
	<h3><a href="#">Section 1</a></h3>
	<div>
		<p>
		Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
		ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
		amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
		odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
		</p>
	</div>
	<h3><a href="#">Section 2</a></h3>
	<div>
		<p>
		Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
		purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
		velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
		suscipit faucibus urna.
		</p>
	</div>
	<h3><a href="#">Section 3</a></h3>
	<div>
		<p>
		Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis.
		Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero
		ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis
		lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.
		</p>
		<ul>
			<li>List item one</li>
			<li>List item two</li>
			<li>List item three</li>
		</ul>
	</div>
	<h3><a href="#">Section 4</a></h3>
	<div>
		<p>
		Cras dictum. Pellentesque habitant morbi tristique senectus et netus
		et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
		faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
		mauris vel est.
		</p>
		<p>
		Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
		Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
		inceptos himenaeos.
		</p>
	</div>
</div>

</asp:Content>
